import java.util.ArrayList;

/**
 * can hold appointments.
 * @author justin
 *
 */
public class Day {
	ArrayList<Appointment> appointments;
	int dayNumber;
	public Day(int myDay){
		dayNumber = myDay;
	}
	public int getDay(){
		return dayNumber;
	}
	public ArrayList<Appointment> getAppointments(){
		return appointments;
	}
	public void addAppointment(Appointment a){
		appointments.add(a);
	}
	public boolean removeAppointment(Appointment a){
		if (!appointments.contains(a)) return false;
		else{
			appointments.remove(a);
			return true;
		}
	}
}
